package service.impl;

import org.springframework.stereotype.Service;
import service.UserService;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2024/11/26
 * @description 用户相关业务接口的实现类
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Override
    public void deleteUser() throws InterruptedException {
        Thread.sleep(100);
        System.out.println("deleting...");
    }

    @Override
    public void updateUser() {
        try {
            Thread.sleep(1234);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("updating...");
    }
}
